import * as homepageApi from '@/api/homepage';
// 分类
export default {
  namespaced: true,
  state() {
    return {
      homeHeadList: {},
    };
  },
  mutations: {
    SET_HOMEHEAD_LIST(state, newValue) {
      state.homeHeadList = newValue;
    },
  },
  actions: {
    async upHomeHead({ commit }) {
      const res = await homepageApi.homeHead();
      commit('SET_HOMEHEAD_LIST', res);
    },
  },
};
